package com.zhang.server.mapper;

import com.zhang.server.controller.request.BorrowPageRequest;
import com.zhang.server.entity.Borrow;
import com.zhang.server.entity.Retur;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BorrowMapper {
    List<Borrow> list();

    List<Borrow> listByCondition(BorrowPageRequest bookPageRequest);

    Integer save(Borrow book);

    Borrow getById(Integer id);

    void update(Borrow book);

    void delete(Integer id);

    List<Retur> returListByCondition(BorrowPageRequest borrowPageRequest);
    Integer returSave(Retur retur);
    void returDelete(Integer id);
}
